<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Gabor
 * Date: 31/03/14
 * Time: 23:11
 * To change this template use File | Settings | File Templates.
 * négyzet 
 */
class Square extends Rectangle
{
    public function setHeight($height)
    {
        $this->height = intval($height);
        $this->width = intval($height);
    }

    public function setWidth($width)
    {
        $this->height = intval($width);
        $this->width = intval($width);
    }
}

/*
$negyzet = new Square();
$negyzet->setHeight(5);
$negyzet->setWidth(2);
$negyzet->getArea();  hát ez így nem 25 lesz ám
*/

